package com.wtwd.campus.jdzc.service;

import com.wtwd.campus.entity.FenceInfo;
import org.apache.commons.lang.StringUtils;

import java.util.List;

/**
 * @Author: ldaoliang
 * @DateTime: 2022/2/15 10:10
 * @Description:
 */
public interface FenceService {

    /**
     * 根据学生id查询围栏
     * @param stuId
     * @return
     */
    List<FenceInfo> getJdzcFenceInfoListByStuId(Integer stuId);

    /**
     * 判断围栏名字是否重复
     * @param fenceName
     * @param studentId
     * @return
     */
    boolean fenceNameIsRepeat(String fenceName,Integer studentId);

    /**
     * 添加围栏
     * @param fenceInfo
     * @return
     */
    Integer addJdzcWxFence(FenceInfo fenceInfo);

    /**
     * 根据围栏id获取围栏信息
     * @param fenceId
     * @return
     */
    FenceInfo getFenceInfoByFenceId(int fenceId);

    /**
     * 删除围栏
     * @param fenceId
     * @return
     */
    Integer deleteFenceInfo(Integer fenceId);

    /**
     * 修改围栏信息
     * @param fenceInfo
     * @return
     */
    Integer modifyFenceInfo(FenceInfo fenceInfo);
}
